package com.gjy.disruptor.uuid;

import com.fasterxml.uuid.Generators;
import com.fasterxml.uuid.impl.RandomBasedGenerator;

import java.io.Serializable;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-10-11 09:05:44
 */
public class UUIDEntity implements Serializable {

    private static final long serialVersionUID = 7837482884303731584L;
    private static final RandomBasedGenerator GENERATOR = Generators.randomBasedGenerator();

    private final String uuid;

    public UUIDEntity() {
        this.uuid = GENERATOR.generate().toString();
    }

    public String getUuid() {
        return uuid;
    }

}
